package com.wyvoid.forum.dao;

import com.wyvoid.core.persistent.hibernate.IHibernateDAO;
import com.wyvoid.core.persistent.hibernate.HibernatePage;
import com.wyvoid.core.persistent.Pagination;
import com.wyvoid.forum.domain.UserProfile;

/**
 * <p>51void.com</p>
 * User:cjp
 * Date: 2007-5-13
 * Time: 12:11:43
 */
public interface IUserProfileDAO extends IHibernateDAO<UserProfile> {
    public UserProfile getUserProfile(long userId);

    /**
     * 得到所有的会员列表
     */
    public HibernatePage getAllUser(Pagination pagination);

    /*
     * 根据查询得到相关数据查询 关联的USER表
     */
    public HibernatePage getSearchUser(String strUserKey,Pagination pagination);

    /*
     * 根据给出的关键字段查询会员用户
     */
    public HibernatePage getSearchUserName(String strUserName,Pagination pagination);

    public UserProfile getUserProfileByUserName(String userName);

}
